<?php

namespace App\Models;

use App\Traits\WorkerMysqlConnect;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class u_current_list extends Model
{
    use HasFactory;
    use WorkerMysqlConnect;

    protected $table = 'u_current_list';

    public static function getCurrentListByPidAndRoom($pid,$room)
    {
        return self::query()->select('*')->where(compact('pid','room'))->get()->toArray();
    }
}
